package com.sy.dto;

import com.sy.entity.Province;

import java.util.List;

/**
 * 用于表示页面中分类信息的某一个节点对象
 */
public class ProvinceTreeNode {
    /**
     * 属性描述: 表示当前分类节点本身的信息
     */
    private Province province;
    /**
     * 属性描述: 每个节点对应的子节点信息
     */
    private List<ProvinceTreeNode> children;

    public Province getProvince() {
        return province;
    }

    public void setProvince(Province province) {
        this.province = province;
    }

    public List<ProvinceTreeNode> getChildren() {
        return children;
    }

    public void setChildren(List<ProvinceTreeNode> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "ProvinceTreeNode{" +
                "province=" + province +
                ", children=" + children +
                '}';
    }
}
